﻿<UserControl x:Class="LFMTest.ToolsTest"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    Loaded="Page_Loaded" Unloaded="Page_Unloaded"
    mc:Ignorable="d"
    d:DesignWidth="1366" d:DesignHeight="768">

    <!--Common resources for default dark theme applications-->
    <UserControl.Resources>
        <SolidColorBrush x:Key="PageBackgroundBrush" Color="#FF1A1A1A"/>
        <SolidColorBrush x:Key="PageForegroundBrush" Color="White"/>
        <SolidColorBrush x:Key="HighlightBrush" Color="#FF26A0DA"/>
            <DataTemplate x:Key="Track">
                <Grid Margin="0,12,0,12">
                    <StackPanel Margin="0,0,0,0" HorizontalAlignment="Stretch" VerticalAlignment="Top">
                        <TextBlock Text="{Binding Title}" FontWeight="SemiLight" FontSize="18" TextWrapping="Wrap" VerticalAlignment="Top" Margin="0,-6,0,0" />
                        <TextBlock FontSize="12" Foreground="Gray" VerticalAlignment="Top" TextWrapping="Wrap" Margin="0,-4,0,0">
                            <Run Text="{Binding Album}" />
                            <Run Text="{Binding Artist}" />
                        </TextBlock>
                    </StackPanel>
                </Grid>
            </DataTemplate>
        </UserControl.Resources>

    <Grid x:Name="LayoutRoot" Background="{StaticResource PageBackgroundBrush}">
        <VisualStateManager.VisualStateGroups>
            <VisualStateGroup x:Name="OrientationStates">
                <VisualState x:Name="Full"/>
                <VisualState x:Name="Fill"/>
                <VisualState x:Name="Portrait"/>
                <VisualState x:Name="Snapped"/>
            </VisualStateGroup>
        </VisualStateManager.VisualStateGroups>
        <ProgressBar x:Name="pb_loading" HorizontalAlignment="Left" Height="28" Margin="33,51,0,0" VerticalAlignment="Top" Width="320"/>
        <TextBlock x:Name="tb_loading" HorizontalAlignment="Left" Margin="33,34,0,0" TextWrapping="Wrap" Text="TextBlock" VerticalAlignment="Top"/>
        <ListBox x:Name="lb_results" HorizontalAlignment="Left" Margin="33,83,0,0" VerticalAlignment="Stretch" Width="320" ItemTemplate="{StaticResource Track}" SelectionChanged="lb_results_SelectionChanged"/>
        <TextBox x:Name="tb_Input" HorizontalAlignment="Left" Margin="418,43,0,0" Width="222" Height="36" VerticalAlignment="Top"    />
        <ListBox x:Name="lb_results2" HorizontalAlignment="Left" Margin="418,83,0,0" VerticalAlignment="Stretch" Width="320" ItemTemplate="{StaticResource Track}" SelectionChanged="lb_results_SelectionChanged"/>
        <Button x:Name="b_search" Content="search" HorizontalAlignment="Left" VerticalAlignment="Top" Width="75" Margin="644,43,0,0" Click="b_search_Click"/>
        <TextBlock x:Name="tb_loading_Copy" HorizontalAlignment="Left" Margin="418,25,0,0" TextWrapping="Wrap" Text="Artist Search" VerticalAlignment="Top" Height="14" Width="66"/>
        <TextBlock x:Name="tb_loading_Copy1" HorizontalAlignment="Left" Margin="33,20,0,0" TextWrapping="Wrap" Text="Collection Loader" VerticalAlignment="Top" Height="14" Width="95"/>

        <TextBox x:Name="tb_Input3" HorizontalAlignment="Left" Margin="800,43,0,0" Width="222" Height="36" VerticalAlignment="Top"    />
        <ListBox x:Name="lb_results3" HorizontalAlignment="Left" Margin="800,83,0,0" VerticalAlignment="Stretch" Width="320" ItemTemplate="{StaticResource Track}" SelectionChanged="lb_results_SelectionChanged"/>
        <Button x:Name="b_search3" Content="search" HorizontalAlignment="Left" VerticalAlignment="Top" Width="75" Margin="1026,43,0,0" Click="b_search3_Click"/>
        <TextBlock x:Name="tb_3" HorizontalAlignment="Left" Margin="800,25,0,0" TextWrapping="Wrap" Text="Album Search" VerticalAlignment="Top" Height="14" Width="79"/>
    </Grid>
</UserControl>